<!DOCTYPE html>
<html lang="en"
        xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
     <!-- jquery -->
       <script type="text/javascript" th:src="@{/js/jquery.min.js}"></script>
     <!-- bootstrap -->
       <link rel="stylesheet" type="text/css" th:href="@{/bootstrap/css/bootstrap.min.css}"/>
       <script type="text/javascript" th:src="@{/bootstrap/js/bootstrap.min.js}"></script>
    <!-- layer -->
       <script type="text/javascript" th:src="@{/layer/layer.js}"></script>
    <!-- common.js -->
       <script type="text/javascript" th:src="@{/js/common.js}"></script>
</head>
<body>
    <div class="panel panel-default">
        <div class="panel-header">秒杀商品详情</div>
        <div class="panel-body">
            <span th:if="${user eq null}"> 您还没有登录，请登陆后再操作</br></span>
            <span>没有收货地址的提示。。。</span>
        </div>
        <table class="table" id="goods">
            <tr>
                <td>商品名称</td>
                <td>商品图片</td>
                <td>商品原件</td>
                <td>秒杀价</td>
                <td>库存数量</td>
                <td>详情</td>
            </tr>
            <tr th:each="goods,goodsStat : ${goodsList}">
                <td th:text="${goods.goodsName}"></td>
                <td><img th:src="@{${goods.goodsImg}}" width="100" height="100"/>
                <td th:text="${goods.goodsPrice}"></td>
                <td th:text="${goods.seckillPrice}"></td>
                <td th:text="${goods.stockCount}"></td>
                <td><a th:href="'/goods/toDetail/'+${goods.id}">详情</a></td>
            </tr>
        </table>
    </div>
</body>
</html>